<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="language" content="en" />

		<?php
		$requestUrl = Yii::app()->request->baseUrl;
		?>

		<!-- blueprint CSS framework -->
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $requestUrl; ?>/css/screen.css"
			  media="screen, projection" />
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $requestUrl; ?>/css/print.css"
			  media="print" />
		<!--[if lt IE 8]>
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $requestUrl; ?>/css/ie.css"
			  media="screen, projection" />
		<![endif]-->
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $requestUrl; ?>/css/buttons/screen.css"
			  media="screen, projection" />

		<?php $assetsUrl = Yii::app()->assetsUrl; ?>
		<link rel="stylesheet" type="text/css" media="screen, projection"
			  href="<?php echo $assetsUrl; ?>/css/typography.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection"
			  href="<?php echo $assetsUrl; ?>/angrybirds/css/main.css" />
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $requestUrl; ?>/css/form.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection"
			  href="<?php echo $assetsUrl; ?>/css/form.css" />

		<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	</head>

	<body>
		<?php
		if (YII_DEBUG) {
			$config = array('text'=>'DEVELOPMENT', 'position'=>'right');
			$this->widget('ext.environmentindicator.ei', $config);
		}
		?>

		<div id="header">
			<div id="mainmenu">
				<?php
				$properties = array('items'=>Yii::app()->menu);
				$this->widget('zii.widgets.CMenu', $properties);
				?>
			</div><!-- mainmenu -->

			<div id="logo">
				<a title="<?php echo CHtml::encode(Yii::app()->name); ?>"
				   href="<?php echo $requestUrl; ?>">
					   <?php
					   $logo = $assetsUrl . '/angrybirds/css/images/logo.png';
					   ?>
					<img src="<?php echo $logo; ?>" />
				</a>
			</div>
		</div><!-- header -->

		<div class="container" id="page">

			<?php if (isset($this->breadcrumbs)): ?>

				<?php
				$this->widget('zii.widgets.CBreadcrumbs',
					array(
					'links'=>$this->breadcrumbs,
				));
				?><!-- breadcrumbs -->
			<?php endif ?>

			<?php echo $content; ?>

			<div class="clear"></div>

		</div><!-- page -->

		<div id="footer">
			<div id="theme">
				<?php
				$this->widget("application.widgets.ThemeWidget");
				?>
			</div>

			<div id="credit">
				Copyright &copy; 2012 by
				<?php echo Yii::app()->params['company']; ?>.
				Designed by
				<?php
				$text = 'Angry Birds Online';
				$url = 'http://angry-birds-online.com';
				$htmlOptions = array(
					'target'=>'_blank',
				);
				echo CHtml::link($text, $url, $htmlOptions);
				?>.
				All Rights Reserved.
				<?php echo Yii::powered(); ?>
			</div>
		</div><!-- footer -->

	</body>
</html>
